﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PartyObjectScoreRuleEdit.aspx.cs" Inherits="SysManage.Module.ScoreManage.PartyObjectScoreRuleEdit" %>


<!DOCTYPE html>
<html>
<head runat="server">
    <title></title>

</head>
<body>
    <form id="form1" runat="server" style="background-color: #0000FF">
        <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
        <f:Panel ID="Panel1" ShowBorder="false" ShowHeader="false" AutoScroll="true" runat="server">
            <Items>

                <f:Form BodyPadding="10px" ID="Form2"
                    runat="server" Title="" ShowBorder="false" ShowHeader="false">
                    <Rows>
                        <f:FormRow>
                            <Items>

                                <f:TextBox ID="txtName" runat="server" LabelAlign="right" Label="积分名称" Required="true"
                                    ShowRedStar="true" RequiredMessage="请填写积分名称">
                                </f:TextBox>

                            </Items>
                        </f:FormRow>

                        <f:FormRow>
                            <Items>
                                <f:TextBox ID="txtCategory" runat="server" LabelAlign="right" Label="积分标识" Required="true"
                                    ShowRedStar="true" RequiredMessage="请填写积分标识">
                                </f:TextBox>
                                <f:DropDownList ID="ddlObjectType" EmptyText="==请选择=="
                                    AutoSelectFirstItem="false" LabelAlign="right" runat="server"
                                    Label="类型" Required="true" ShowRedStar="true" RequiredMessage="请选择类型">
                                    <f:ListItem Value="Member" Text="个人积分" />
                                    <f:ListItem Value="Branch" Text="组织积分" />
                                </f:DropDownList>
                            </Items>
                        </f:FormRow>
                        <f:FormRow>
                            <Items>
                                <f:NumberBox ID="txtScore" MinValue="0" runat="server" LabelAlign="right" Label="单次积分" Required="true"
                                    ShowRedStar="true" RequiredMessage="请填写单次积分" DecimalPrecision="2" NoNegative="true">
                                </f:NumberBox>
                                <f:NumberBox ID="NumberBox2" Hidden="true" runat="server">
                                </f:NumberBox>
                            </Items>
                        </f:FormRow>
                        <f:FormRow>
                            <Items>
                                 <f:NumberBox ID="txtDayMax" MinValue="0" runat="server" LabelAlign="right" Label="每天上限" Required="true"
                                    ShowRedStar="true" RequiredMessage="请填写每天上限" DecimalPrecision="2" NoNegative="true">
                                </f:NumberBox>
                                <f:NumberBox ID="txtMonthMax" MinValue="0" runat="server" LabelAlign="right" Label="每月上限" Required="true"
                                    ShowRedStar="true" RequiredMessage="每月上限" DecimalPrecision="2" NoNegative="true">
                                </f:NumberBox>
                               <f:NumberBox ID="txtYearMax" MinValue="0" runat="server" LabelAlign="right" Label="每年上限" Required="true"
                                    ShowRedStar="true" RequiredMessage="每年上限" DecimalPrecision="2" NoNegative="true">
                                </f:NumberBox>
                            </Items>
                        </f:FormRow>

                        <f:FormRow>
                            <Items>
                                <f:Label runat="server" ShowEmptyLabel="true" ID="labTip"
                                    ShowLabel="true" LabelAlign="right"
                                    CssStyle="color:red;" CssClass="fontred" EncodeText="false" 
                                    Text="<span style='color:red'>说明：每天上限、每月上限、每年上限为0时，表示无上限。<span>">
                                </f:Label>
                            </Items>
                        </f:FormRow>
                        <f:FormRow>
                            <Items>

                                <f:DropDownList ID="ddlStatus" EmptyText="==请选择=="
                                    AutoSelectFirstItem="false" LabelAlign="right" runat="server"
                                    Label="状态" Required="true" ShowRedStar="true" RequiredMessage="请选择状态">

                                    <f:ListItem Value="4" Text="启用" />
                                    <f:ListItem Value="1" Text="禁用" />
                                </f:DropDownList>
                            </Items>
                        </f:FormRow>
                        

                    </Rows>
                </f:Form>

            </Items>
            <Toolbars>
                <f:Toolbar ID="Toolbar1" runat="server" Position="Bottom" ToolbarAlign="Center">
                    <Items>
                        <f:Button ID="btnSaveClose" ValidateForms="Form2" Icon="SystemSaveClose"
                            OnClick="btnSaveClose_Click" runat="server" Text="保存并关闭">
                        </f:Button>
                        <f:ToolbarSeparator ID="ToolbarSeparator2" runat="server">
                        </f:ToolbarSeparator>
                        <f:Button ID="btnClose" Icon="SystemClose" EnablePostBack="false" runat="server"
                            Text="关闭" DisableControlBeforePostBack="True">
                        </f:Button>
                    </Items>
                </f:Toolbar>
            </Toolbars>
        </f:Panel>


    </form>
</body>
</html>
